n=input()
s=n[::-1]
if s==n:
    print("shi")
else:
    print("bushi")            ###回文数
for n in range(100,1000):
    a=n//100
    b=n//10%10
    c=n%10
    if n==a**3+b**3+c**3:
        print(n,end="t")      ########求水仙花数
s=[1,2,3,4,3,5]
s.append(777)
print(s)
s.extend({666,999,6666})
print(s)
s.insert(666,"鸡鸡鸽鸽哒")
print(s)
s[1]=888
print(s)
s[2:5]=[6,7]                  #######列表
for n in range(1900,2901):
     if n%4==0 and n%100!=0 or n%400==0:
         print(n)
for i in range(1,101):
 if 70<=i<80:
     continue
 elif i%13==0:
     print(i)

print("*********")
print(" *******")
print("  *****")
print("   ***")
print("    *")                ######练习题
a=int(input())
if a%4==0 and a%100!=0 or a%400==0:
    print(f"{a}是闰年")
else:print(f"{a}不是闰年")
a=[3,6,9,4,5,11,31,21]
a.sort(reverse=True)
print(a)           ##########排序
a=[1,2,3,4,5,6,7,8,9,10]
c=[]
for i in a:
    if i%2==0:
        c.append(i)
print(c)                     ####选出1列表中的偶数
a=[]
for i in range(1,11):
      a.append(i**2)
print(a)                  #####1到10的平方
q=[("牛奶",5),("鸡蛋",20),("香蕉",10),("杯子",10)]
w=[]
M=float(input("请确认您有多少钱："))
while True:
    print("-"*30)
    print("商品列表如下：")
    for r,t in enumerate(q):
        print(f"{r+1}.商品:{t},价格:{t[1]}")
        print("-"*30)
        u=input("请输入您要购买的物品（退出请按q）:")
        if u.isdigit():
            u=int(u)
            if 0<=u-1<len(q):
                i=q[u-1]
                if i[1]<=M:
                    w.append(i)
                    M=i[1]
                    print("购买成功")
                else:
                    print(f"没钱了，余额为：{M}")
            else:
                print("没有这个商品")
        elif u=="q":
            print("*"*10,"购物清单","*"*10)
            for j in w:
                print(f"已购商品{j[0]},价格：{j[1]}")
            print("您的余额为：",M)
            break
        else:
            print("您输入的不合法")
a=[23,11,12,23,9,2,1,4]
b=[]
for i in a:
    if i not in b:
        b.append(i)
if len(a)==len(b):
    print("没有")
else:
    print("有")   ########列表list=[23,11,12,23,9,2,1,4],判断其中是否有重复元素
waste_dict = {
    "可回收垃圾":["玻璃","金属","塑料瓶","纸张","衣服"],
    "干垃圾":["餐巾纸","塑料袋","纸巾","纸尿裤","花盆","陶瓷"],
    "湿垃圾":["剩饭剩菜","瓜皮果核","花卉绿植","过期食品"],
    "有害垃圾":["电池","油漆桶","荧光灯管","废药品"],
    }
while True:
    search_waste = input("请输入您要查询的垃圾：")
    find = False
    if search_waste == "q":
        break
    for classify,waste in waste_dict.items():
        if search_waste in waste:
            find = True
        print(f"{search_waste}的类别是{classify}")
        print("-"*30)
    if find == False:
        print("没有找到该垃圾的分类，请自行判断")
        print("-"*30)
        for classify,waste in waste_dict.items():
            print(f"{classify}包括：",end="")
            for item in waste:
                if waste.index(item) == len(waste) - 1:
                    print(item)
                else:
                    print(item,end="，")
        print("-" * 30)
        break
def n(c):
    high = c // 100
    mid = c // 10 % 10
    low = c % 10
    return high, mid, low
result = n(543)
print(result)
a,b,c = n(543)
print(a,b,c)
